package com.hujing;

import java.time.Instant;
import java.util.Date;

/**
 * @Author : hujing
 * @Date: 2025/7/22 14:27
 * @Description:
 */
public class InstantDemo {

    public static void main(String[] args) {
        // 将秒级时间戳转成java.util.Date
        long timestamp = 1753165767;
        Instant instant = Instant.ofEpochSecond(timestamp);
        Date date = Date.from(instant);
        System.out.println(date);
        
    }
}
